/*
 * @Author: 李一番
 * @Date: 2021-10-12 13:54:26
 * @Last Modified by: 李一番
 * @Last Modified time: 2021-12-28 14:27:26
 */

import { getCookie } from '@/utils/auth'

export type IPermissionState = {
  menuPermission: Object
  buttonPermission: any[]
}

export const state: IPermissionState = {
  menuPermission: JSON.parse(getCookie('menuPermission') || "{}") as Object || {},
  buttonPermission: JSON.parse(getCookie('buttonPermission') || "[]") as unknown as Array<any> || [],
}
